package com.leeon.generics;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.Set;

import typeinfo.pets.Person;
import typeinfo.pets.Pet;

public class New {

	public static <K,V> Map<K, V> map(){
		return new HashMap<K,V>();
	}
	
	public static <T> List<T> List(){
		return new ArrayList<T>();
	}
	
	public static <T> LinkedList<T> lList(){
		return new LinkedList<T>();
	}
	
	public static <T> Set<T> set(){
		return new HashSet<T>();
	}
	
	public static <T> Queue<T> queue(){
		return new LinkedList<T>();
	}
	
	public static void main(String[] args){
		Map<String, List<String>> sls = New.map();
		List<String> ls = New.List();
		LinkedList<String> lls = New.lList();
		Set<String> set = New.set();
		Queue<String> qs = New.queue();
		Map<Person, List<? extends Pet>> petPeople = New.map();
		System.out.println(petPeople);
	}
	
}
